#!/usr/bin/perl
#Rescan disks
require './diskman-lib.pl';

my (@ctrl);
@ctrl=&get_ctrl_num();

#`echo $ctrl >>/root/niu1`;
$temp = "xx/$ctrl[0] rescan 2>/dev/null |";
$temp = $config{'amccpath'}." /$ctrl[0] rescan 2>/dev/null";
system($temp);
#sleep(5);
redirect("index.cgi");

ERROR_OUT:
&error_setup($text{'diskfmt_err_title'});
&error($err_msg);
